package com.ss.android.article.base.feature.detail2.picgroup.view;

import android.support.v4.view.ViewPager.PageTransformer;
import android.view.View;

public final class b implements PageTransformer {
    public b() {

    }

    public final void transformPage(View page, float position) {
        if(position <= 0f) {
            page.setTranslationX((((float) page.getWidth())) * position * 0.07f);
        }
        else {
            page.setTranslationX(0f);
        }

        page.setAlpha(Math.max(0f, 1f - Math.abs(position)));
    }
}

